<template>
  <el-card class="box-card">
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="上传文件" name="first"><File/></el-tab-pane>
      <el-tab-pane label="播放视频" name="second"><Video /></el-tab-pane>
    </el-tabs>
  </el-card>
</template>
<script setup>
import Video from './Video.vue'
import { ref } from 'vue'
import File from './File.vue'
// import { TabsPaneContext } from 'element-plus'

const activeName = ref('first')

const handleClick = (tab, event) => {
  console.log(tab, event)
}
</script>
<style lang="less" scoped>
.el-card {
  height: 100%;
  /deep/.el-card__body {
    height: 100%;
    .el-tabs {
      height: 100%;
      .el-tabs__content {
        height: 100%;
        .el-tab-pane{
           height: 100%;
        }

      }
    }
  }
}
</style>
